<?php 
$server = "localhost";
$user = "apcvote_voter";
$pass = "123qwe";
$db = "apcvote_apcvote";

mysql_connect($server,$user,$pass) or die(mysql_error());
		mysql_select_db($db) or die(mysql_error());
		$result = mysql_query("SELECT * FROM voters where voter_permission='Voter'") or die(mysql_error());  //Get all information from voter
		while($row = mysql_fetch_array( $result )){ 
		echo "<br>".$row['voter_lname']." User Name: ".$row['voter_username']." Pass: ".$row['voter_pass'];
		}?>